home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
tlxjwpc5.zip
/
WHATBBS.SLT
< prev
Wrap
Text File
|
1990-09-21
|
3KB
|
60 lines
//╔═════════════════════════════════════════════════════════════════════╗
//║ RBBS 17.3A JW-PC Consulting DataFlex.HST (608)837-1923 ║
//║ Dual Std HST/V.32/MNP5/V.42 RBBSnet 8:972/2 FIDOnet 1:121/8 ║
//╚═════════════════════════════════════════════════════════════════════╝
//////////////////////////// WHAT_BBS.SLT /////////////////////////////
// To compile, see that CS.EXE is in the same directory, then enter
// "cs what_bbs" at the DOS prompt (leave out quotation marks).
//
// If you're connected to a BBS, prints the BBSs name in the lower
// left-hand corner instead of the "Alt-Z for Help" message. If you're not
// connected, prints the Alt-Z message instead, when script is called.
//
// You can include this script at the beginning of any logon script with
// the command, "calld(what_bbs);".
//
// You can use this script between calls either by hitting Alt-G, then
// entering "what_bbs", or by attaching it to an unused key (hit
// Alt-K,select the unused key, and enter "@what_bbs", white the new
// key attachment to disk, then hit that key between calls).
//
// This script is a combination of ideas inspired by the Telix conference of
// SMLNET, Paul Roub, and Jim Wargula. This script is in
// the PUBLIC DOMAIN.
//
// Standard disclaimer: I'm not responsible if it messes up.
//
// Enjoy, and please let me know of any modifications or improvements it
// may need. Edit your own colors and status line position below...
//
///////////////////////////////////////////////////////////////////////
int statline = 24; // Telix status line row
int statback = 3; // status line background color
int statfore = 0; // status line foreground color
main()
{
int a = 0; // counter
int x, y;
str bbsname[14] = ""; // for storage and display
x = getx(); // store original cursor position x
y = gety(); // store original cursor position y
substr(_entry_name,0,14,bbsname); // get the current BBS name
if ((strlen(bbsname) == 0) || (! carrier()))
bbsname = "Alt-Z for Help"; // display help message if no BBS
strcat(bbsname, " "); // pad name with spaces
pstraxy( bbsname, 1, statline, // display it
(statback * 16) + statfore);
gotoxy(x, y); // return to saved position
}